package com.uzai.console.service.useraccdetail;

import com.uzai.common.entity.User;
import com.uzai.console.entity.UserTakeBal;
import com.uzai.console.vo.order.BaseOrderVo;

/***
 * @author liuqi
 * @date 2021年09月01日 19:26
 */
public interface UserAccDetailService {

    /**
     * 通过追回返利修改账户信息
     * @author liuqi
     * @date 2021/8/25 11:38
     * @return null
     */
    void updateByRebateRefound(Long merId, String parentOrderNo, String childOrderNo, Long userId, String deviceType, Long deviceUniqueId,
                               int reUserInte, double reUserBal, double reParentUserBal, double reSlParentUserBal, double reAgentBal, double reSlAgentBal, double rePartnerBal, int now, BaseOrderVo baseOrderVo);

    /**
     * 修改会员账户余额
     * @author liuqi
     * @date 2021/8/13 11:38
     * @param nowUser
     * @return null
     */
    void updateBalance(double newBalance, int integral, int now, User nowUser, int awardType, String orderId, Long sourceId, Long deviceUniqueId, String tradeno);


    /**
     * 提现相关的修改账号余额
     * @author liuqi
     * @date 2021/8/13 11:38
     * @param userTakeBal
     * @return null
     */
    void updateBalance(UserTakeBal userTakeBal);




}
